//
//  SEChatConfirmEndCell.swift
//  SmartEyeForDoctor
//
//  Created by QDSG on 2021/6/21.
//

import UIKit

class SEChatConfirmEndCell: UITableViewCell {
    
    func update(with viewModel: SEChatViewModel) {
        let status = SEInquiryChangeStatus(rawValue: viewModel.chatRecord.content ?? "0") ?? .waitPay
        
        statusLabel.text = status.statusText
        statusLabel.textColor = status.statusTextColor
    }
    
    @IBOutlet private weak var containerView: UIView! {
        didSet {
            containerView.setLayerCorners(rect: containerView.bounds, radius: 6)
            containerView.setShadow()
        }
    }
    
    @IBOutlet private weak var statusLabel: UILabel!
    
}
